# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-wasabi
pkgver=0.7.0
pkgrel=0
pkgdesc="A lightweight console printing and formatting toolkit"
url="https://github.com/ines/wasabi"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="wasabi-$pkgver.tar.gz::https://github.com/ines/wasabi/archive/v$pkgver.tar.gz"
builddir="$srcdir/wasabi-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest-3 wasabi
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="4d4d9989532e75d3b864b809cea5a56b006f611c4c2ec516451fa698c3de42d69d3209d1c57f36bd216fd9ea02b3f9bd27df74b54c6edb802754b71edc2049b0  wasabi-0.7.0.tar.gz"
